package com.zq.server.api.domain.entity;

import java.time.LocalDateTime;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zq.common.annotation.Excel;

import lombok.Data;

/**
 * 战队功能模块对象 api_team
 * 
 * @author 财哥
 * @date 2024-03-31
 */
@Data
public class ApiTeam
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 战队头像 */
    @Excel(name = "战队头像")
    private String img;

    /** 战队名称 */
    @Excel(name = "战队名称")
    private String name;

    /** 战队介绍 */
    @Excel(name = "战队介绍")
    private String bio;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /** 创建者 */
    @Excel(name = "创建者")
    private String framerName;

    /** 创建者id */
    @Excel(name = "创建者id")
    private Long framerId;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBio(String bio) 
    {
        this.bio = bio;
    }

    public String getBio() 
    {
        return bio;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCreationTime(LocalDateTime creationTime)
    {
        this.createTime = creationTime;
    }

    public LocalDateTime getCreationTime()
    {
        return createTime;
    }
    public void setFramerName(String framerName) 
    {
        this.framerName = framerName;
    }

    public String getFramerName() 
    {
        return framerName;
    }
    public void setFramerId(Long framerId) 
    {
        this.framerId = framerId;
    }

    public Long getFramerId() 
    {
        return framerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("img", getImg())
            .append("name", getName())
            .append("bio", getBio())
            .append("city", getCity())
            .append("creationTime", getCreationTime())
            .append("updateTime", getUpdateTime())
            .append("framerName", getFramerName())
            .append("framerId", getFramerId())
            .toString();
    }
}
